package com.leolian.spring02.activemq;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 配置了监听容器
 * 
 * @author Administrator
 */
public class Client4 {

	public static void main(String[] args) {
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:activemq/applicationContext-activemq2.xml");

		Lesson4Producer producer = (Lesson4Producer) applicationContext.getBean("lesson4Producer");

		producer.send("你在哪里啊？");
		producer.send("嗨，你好吗？");
		producer.send("工作怎么样？");
		
		
	}
}